package com.kaikeba.service;

import com.kaikeba.entity.User;
import com.kaikeba.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper mapper;

    public User queryById(long id){
        return mapper.selectByPrimaryKey(id);
    }

}
